package com.ljl.system.mapper;

import com.ljl.system.domain.Menu;
import com.ljl.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ljl
 * @since 2022-06-09
 */
public interface MenuMapper extends BaseMapper<Menu> {



    void delMenuByRoleId(Long id);

    void delPermissionByRoleId(Long id);

    void delEmployeeByRoleId(Long id);

    void saveRoleMenu(@Param("id") Long id, @Param("menus")List<Long> menus);

    void saveRolePermission(@Param("id")Long id, @Param("permissions")List<Long> permissions);
}
